asQuery

inline fun <T> Subscription.asQuery(): <ERROR CLASS><T>

Converts the Subscription.queryDescription back to a RealmQuery that can be executed against the local Realm.

Parameters

T

a reference to the Kotlin model class that represents the Subscription.objectType.

Throws

IllegalArgumentException

if type does not match the type of objects this query can return.